aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/dashboard
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-12-22 13:39:06 -0800
committerAdam Soltys <[email protected]>2022-12-22 13:39:06 -0800
commitb2dfd7eef4a3e892b3eeb6822f2e472b3be03267 (patch)
treea483eb425c9d1eed170a29efaadad1b798c02fb0 /src/routes/(app)/[username]/dashboard
parent17c9b99208b3881e62275ef3e552a3c30e55939d (diff)
downloadcoinos-ui-b2dfd7eef4a3e892b3eeb6822f2e472b3be03267.tar.gz
coinos-ui-b2dfd7eef4a3e892b3eeb6822f2e472b3be03267.zip
fix avatars
Diffstat (limited to 'src/routes/(app)/[username]/dashboard')
-rw-r--r--src/routes/(app)/[username]/dashboard/+page.svelte12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/routes/(app)/[username]/dashboard/+page.svelte b/src/routes/(app)/[username]/dashboard/+page.svelte
index 0b49a870..9c321472 100644
--- a/src/routes/(app)/[username]/dashboard/+page.svelte
+++ b/src/routes/(app)/[username]/dashboard/+page.svelte
@@ -6,6 +6,8 @@
import { rate, password, selectedRate } from '$lib/store';
import { goto } from '$app/navigation';
import { t } from '$lib/translations';
+ import { events } from '$lib/store';
+ import { Feed } from '$comp';
export let data;
$: ({ invoices, requests } = data);
@@ -55,6 +57,10 @@
$: btcPrice = f($selectedRate, user.currency);
$: accountBalanceBtc = user.account.balance / sats;
+
+ $: sorted = Object.values($events)
+ .filter((ev) => ev?.pubkey)
+ .sort((a, b) => b.seen - a.seen);
</script>
<div class="container px-4 max-w-md mx-auto mt-20 space-y-12 mb-8">
@@ -170,3 +176,9 @@
</div>
</div>
</div>
+
+<div class="mb-20">
+ <div class="container w-full mx-auto text-lg px-4 md:max-w-2xl space-y-5">
+ <Feed events={sorted} />
+ </div>
+</div>